package sso.study.Controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:
 *
 * @author Ychiha
 * @version 1.0
 * @date 15/1/2022 上午8:48
 */
@RestController
@RequestMapping("/user")
public class UserController {


    /**
     * 获取用户信息
     * @param authentication
     * @return
     */
    @RequestMapping("getCurrent")
    public Object getCurrentUser(Authentication authentication){
        return  authentication;
    }

}
